<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link href="./layui/css/layui.css" rel="stylesheet">
</head>
<body>
<button onclick="clickMe()">点我</button>
<script src="layui/layui.js"></script>
<script src="mylayer.js"></script>
<script>
    function clickMe() {
        //mylayer.alert('您确认要删除么？')
        //mylayer.confirm('您确认要删除么?', 'https://www.baidu.com');
        //mylayer.okMsg('删除成功');
        //mylayer.errorMsg('删除失败');
        mylayer.okUrl('删除成功', 'https://www.baidu.com');
    }
</script>
</body>
</html>